package com.pandora.credit.dao;

import com.pandora.credit.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author developer
 */
public interface CustomerDao {

    /**
     * queryByMobile
     * @param mobile mobile
     * @return Customer
     */
    Customer queryByMobile(@Param("mobile") String mobile);

    /**
     * insert
     * @param customer customer
     */
    void insert(Customer customer);

    /**
     * update
     * @param customer customer
     */
    void update(Customer customer);

    /**
     * queryByStatusArea
     * @param status status
     * @return Customer
     */
    List<Customer> queryByStatusArea(@Param("status") String status);
}
